Post

Replies

Boosts

Views

Activity

Comment on What could cause a UIViewController to get viewDidLoad twice and never get viewWillAppear or viewDidAppear?
For collecting a backtrace in the field, is the best way to use NSThread.callStackSymbols? I have two sets of diagnostics saved from customers hitting this. In one, I get two viewDidLoad calls a little under a second apart. In the other, I get three - the second one is 22 seconds after the first, and the third is 5 seconds after that. In the first, I get viewWillDisappear but not viewDidDisappear. In the second, I get no disappear methods. Would a DTS ticket be useful for more detail?
Topic: UIKit SubTopic:
UIKit Q&A
1w
Comment on What could cause a UIViewController to get viewDidLoad twice and never get viewWillAppear or viewDidAppear?
The view controller in question is contained in a UINavigationController that's a child view controller of something else, but the issue occurs when the view controller is created and pushed onto the navigation stack when that UINavigationController is already visible. So I don't think it's an issue of mismatched beginAppearanceTransition / endAppearanceTransition, but I'll audit my usage of those. I'm not resetting the view to nil anywhere.
Topic: UIKit SubTopic:
UIKit Q&A
1w
Comment on InferenceError referencing context length in FoundationModels framework
Thanks for the confirmation on the length limit. Can you provide an example of (or clarify further) how to split content into smaller chunks for the LanguageModelSession API? I want the model to be able to do something with the whole input at once. It seems like a notable limitation if I can't have the model act on any content longer than 4096 tokens in total...
Jun ’25
Comment on Why can't I reduce the length of the selection range in WKWebView in Catalyst on macOS Sequoia?
I have reproduced the issue on 15.1 (24B83). I selected Seed 6 in the "what build" dropdown in Feedback Assistant because that was the latest version available in the dropdown, though apparently I neglected to point that out in the issue description (though I have said it in other issues - see FB15730854, FB15714657). Regardless - you can't reproduce this issue on 15.1 using the sample app I provided? Could there be other factors at play here? Is there more data I can provide to clarify?
Topic: UI Frameworks SubTopic: UIKit Tags:
Nov ’24
Comment on How can I make my multi-window Catalyst app restore window size and position after closing with stoplight button?
I read through those docs and tried the sample app, but it's all about restoring view controller state. That already works - I can open various windows, quit the app, relaunch it, and they come back as they were, via NSUserActivity. My question is about how to make macOS understand that for one particular window type (meaning one particular UISceneConfiguration), when the window is closed using the stoplight button and reopened, it should be restored, not recreated from scratch.
Topic: UI Frameworks SubTopic: UIKit Tags:
Oct ’24
Comment on Diagnosing crashes reported in App Store Connect analytics
This is a good overview of the Organizer and related data but doesn't answer any of my questions.
Topic: General SubTopic:
Power & Performance Q&A
Replies
Boosts
Views
Activity
1w
Comment on What's the best way to get symbol files for system libraries, for symbolicating MetricKit call stack trees?
FB23072845
Topic: General SubTopic:
Power & Performance Q&A
Replies
Boosts
Views
Activity
1w
Comment on What could cause a UIViewController to get viewDidLoad twice and never get viewWillAppear or viewDidAppear?
For collecting a backtrace in the field, is the best way to use NSThread.callStackSymbols? I have two sets of diagnostics saved from customers hitting this. In one, I get two viewDidLoad calls a little under a second apart. In the other, I get three - the second one is 22 seconds after the first, and the third is 5 seconds after that. In the first, I get viewWillDisappear but not viewDidDisappear. In the second, I get no disappear methods. Would a DTS ticket be useful for more detail?
Topic: UIKit SubTopic:
UIKit Q&A
Replies
Boosts
Views
Activity
1w
Comment on Help with reducing File Lock (0xdead10cc) terminations
I can sort of reproduce it locally, but I want to know what's most common for my users in the field. And my app interacts with various SQLite files through tons of different code paths.
Topic: General SubTopic:
Power & Performance Q&A
Replies
Boosts
Views
Activity
1w
Comment on What determines the size of the blur effect in a view with UIScrollEdgeElementContainerInteraction?
My design is for using the hard-blur style to fill something like a title-bar at the top of a vertically scrolling area, like in the screenshot in the linked forum post. If the scroll edge effect isn't the best tool, what is a better choice?
Topic: UIKit SubTopic:
UIKit Q&A
Tags:
Replies
Boosts
Views
Activity
1w
Comment on What could cause a UIViewController to get viewDidLoad twice and never get viewWillAppear or viewDidAppear?
I should add that I've never reproduced the issue in debug - I've only gotten diagnostics from users, and it's quite a rare issue.
Topic: UIKit SubTopic:
UIKit Q&A
Replies
Boosts
Views
Activity
1w
Comment on What could cause a UIViewController to get viewDidLoad twice and never get viewWillAppear or viewDidAppear?
The view controller in question is contained in a UINavigationController that's a child view controller of something else, but the issue occurs when the view controller is created and pushed onto the navigation stack when that UINavigationController is already visible. So I don't think it's an issue of mismatched beginAppearanceTransition / endAppearanceTransition, but I'll audit my usage of those. I'm not resetting the view to nil anywhere.
Topic: UIKit SubTopic:
UIKit Q&A
Replies
Boosts
Views
Activity
1w
Comment on UIScrollEdgeElementContainerInteraction uses wrong mix-in color over WKWebView on iOS 26.1
The original report is closed, so I can't add more information to it.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
1w
Comment on UIScrollEdgeElementContainerInteraction uses wrong mix-in color over WKWebView on iOS 26.1
Thanks. It doesn't look like this landed in iOS 26.1 beta 4, but I'll check again on the next beta.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Oct ’25
Comment on Should setting a UIVisualEffectView's effect to nil remove its visual glass effect?
Same. FB20069803, with a sample project.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Sep ’25
Comment on InferenceError referencing context length in FoundationModels framework
Thanks for the confirmation on the length limit. Can you provide an example of (or clarify further) how to split content into smaller chunks for the LanguageModelSession API? I want the model to be able to do something with the whole input at once. It seems like a notable limitation if I can't have the model act on any content longer than 4096 tokens in total...
Replies
Boosts
Views
Activity
Jun ’25
Comment on Why can't I reduce the length of the selection range in WKWebView in Catalyst on macOS Sequoia?
The issue still exists on macOS Sequoia 15.3 Beta 1 (24D5034f).
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Dec ’24
Comment on Why can't I reduce the length of the selection range in WKWebView in Catalyst on macOS Sequoia?
I have reproduced the issue on 15.1 (24B83). I selected Seed 6 in the "what build" dropdown in Feedback Assistant because that was the latest version available in the dropdown, though apparently I neglected to point that out in the issue description (though I have said it in other issues - see FB15730854, FB15714657). Regardless - you can't reproduce this issue on 15.1 using the sample app I provided? Could there be other factors at play here? Is there more data I can provide to clarify?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Nov ’24
Comment on How can I make my multi-window Catalyst app restore window size and position after closing with stoplight button?
Setting the restorationIdentifier property of that scene's window or its root view controller does not appear to do anything.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Oct ’24
Comment on How can I make my multi-window Catalyst app restore window size and position after closing with stoplight button?
I read through those docs and tried the sample app, but it's all about restoring view controller state. That already works - I can open various windows, quit the app, relaunch it, and they come back as they were, via NSUserActivity. My question is about how to make macOS understand that for one particular window type (meaning one particular UISceneConfiguration), when the window is closed using the stoplight button and reopened, it should be restored, not recreated from scratch.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Oct ’24